/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package se.kth.lwr.jeat.samples.onsitetreatment;

import javax.measure.quantity.Dimensionless;
import javax.measure.quantity.Duration;
import javax.measure.quantity.Length;
import javax.measure.unit.NonSI;
import javax.measure.unit.SI;
import javax.measure.unit.Unit;
import org.jscience.physics.amount.Amount;
import se.kth.lwr.jeat.core.Activity;
import se.kth.lwr.jeat.core.Inventory;
import se.kth.lwr.jeat.core.AmountDataSource;

/**
 *
 * @author davidev
 */
public class Scenario1 extends Activity{
    
    /**
     * Number of persons using the system
     * <p/>
     * Value: 5
     * <p/>
     * Unit: PersonEqvivalents
     */
    public static final AmountDataSource systemUsers = new AmountDataSource<>(
            "systemUsers",
            "Number of persons using the system",
            Amount.valueOf(5, Units.PersonEquivalent));
   
    public Scenario1(String name, String description) {
        super(name, description);
        addSubActivities();      
    }
    
        private void addSubActivities() {
         //create a septic tank
        SepticTank tank=new SepticTank("Septic tank", "Concrete septic tank");
        //create a bed filter
        BedFilter filter=new BedFilter("Bed filter", "Producttion of bed filter module");
        //connect the filter to the septic tank
        filter.connectPreTreatmentUnit(tank); 
        //add the activities as childs
        addChild(tank);
        addChild(filter);
        //create and add a Local water well as a child
        addChild(new LocalWaterWell("Local water well", "production of components for local water extraction and distibution"));      
    }
    
    

    @Override
    public Inventory contribute(Inventory inventory) {
        return inventory;
    }


    
    
}
